package controller

import (
	"fmt"
	"minigame/net"
)

var DefaultAccount = &Account{}

type Account struct {
}

func (a *Account) Router(r *net.Router) {
	g := r.Group("account")
	g.AddRouter("login", a.login)
}

func (a *Account) login(req *net.WsMsgReq, rsp *net.WsMsgRsp) {
	fmt.Println("login account")
	//loginReq := &proto.LoginReq{}
	//loginRes := &proto.LoginRsp{}
	fmt.Println("login account", req.Body.Msg, rsp.Body)

	rsp.Body.Msg = "aaaa"

}
